package level.editor.view.menu;

import javax.swing.JMenuBar;
import level.editor.view.Window;
import level.editor.view.desktop.Desktop;

public class MainMenuBar extends JMenuBar
{
	public MainMenuBar(Window window)
	{
		init(window);
	}

	protected void init(Window window)
	{
		add(new MenuFile((Desktop) window.getDesktop()));
		add(new MenuEdit((Desktop) window.getDesktop()));
		add(new MenuWindow((Desktop) window.getDesktop()));
	}
}
